const http = require('http');

const server = http.createServer((request,response)=>{
    let url = new URL(request.url,'120.0.0.1');
    console.log(url.pathname);
    console.log(url.searchParams.get('yuyou'));
    response.end('url new')
})

server.listen(1234,()=>{
    console.log('服务已启动……');
})